package me.luger.project.fof.entity;


import me.luger.core.dao.nutz.entity.BaseEntity;
import me.luger.core.dao.nutz.entity.NutzTransient;
import org.nutz.dao.entity.annotation.*;
import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;
import java.util.Date;

@Table("fof_weight_daily")
public class FofWeightDaily extends BaseEntity implements Serializable{
private static final long serialVersionUID=2L;


    /**
     * fof id
     */
    @Id
    @Column("fof_id")
    @Comment("fof id")
    @ColDefine(type = ColType.INT, width = 10)
    private Integer fofId;
    /**
     * 基金外部编号
     */
    @Name
    @Column("fund_ext_code")
    @Comment("基金外部编号")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String fundExtCode;
    /**
     * 基金权重
     */
    @Column("weight")
    @Comment("基金权重")
    @ColDefine(customType = "DECIMAL", width = 38)
    private Double weight;
    /**
     * 计算日期
     */
    @Column("calc_date")
    @Comment("计算日期")
    @ColDefine(type = ColType.DATETIME, width = 19)
    @JSONField (format="yyyy-MM-dd HH:mm:ss")
    private Date calcDate;

    /**
     * 资产大类名称
     */
    @NutzTransient
    private String assetStrategyInfo;

    public void setFofId(Integer fofId){
        this.fofId=fofId;
    }
    public Integer getFofId(){
        return this.fofId;
    }

    public void setFundExtCode(String fundExtCode){
        this.fundExtCode=fundExtCode;
    }
    public String getFundExtCode(){
        return this.fundExtCode;
    }

    public void setWeight(Double weight){
        this.weight=weight;
    }
    public Double getWeight(){
        return this.weight;
    }

    public void setCalcDate(Date calcDate){
        this.calcDate=calcDate;
    }
    public Date getCalcDate(){
        return this.calcDate;
    }

    public void setAssetStrategyInfo(String assetStrategyInfo){ this.assetStrategyInfo=assetStrategyInfo; }
    public String getAssetStrategyInfo(){
        return this.assetStrategyInfo;
    }


}